Package-level declarations

Types

Link copied to clipboard
data class GuiAnchor(val x: Float = 0.0f, val y: Float = 0.0f)

GUI 百分比锚点:(0, 0) 是左上角,(100, 100) 是右下角。 GUI anchor in percentages: (0, 0) is top-left; (100, 100) is bottom-right.

Link copied to clipboard
data class LayoutEntity(val layoutId: String, val elements: Map<String, LayoutEntityElement> = mapOf(), val defaults: OptionEntity? = null)

一个顶层布局及其元素、默认字体和图片组选项。 A top-level layout with its elements and default font/image options.

Link copied to clipboard
data class LayoutEntityElement(anchor: GuiAnchor? = null, val layer: Int = 0, val affectBounds: Boolean = true, val condition: String? = null, val x: Int = 0, val y: Int = 0, val align: String? = null, value: String? = null, val lines: LinesConfig? = null, val list: List<String>? = null, val offset: PositionOffset? = null, val image: ElementImageEntity? = null, val head: HeadElement? = null, val avatar: AvatarElement? = null, val progress: LayoutEntityProgress? = null, val compass: CompassElement? = null, val background: ElementBackgroundEntity? = null, val font: String? = null)

布局中的图片、玩家头像、文字、进度条或文字背景。 A layout element representing an image, player head, text, progress display, or text background.

Link copied to clipboard
data class LayoutEntityProgress(val namespace: String? = null, val basename: String? = null, val variables: ProgressVariableEntity? = null, val list: List<String>? = null, val image: ProgressImageEntity? = null, val fill: ProgressFill? = null, val transition: ProgressTransition? = null, val trail: ProgressTrail? = null, val refresh: Int? = null)

把图片或图片列表映射为玩家的进度显示。 Maps an image pair or image list to a player’s progress display.

Link copied to clipboard
data class LinesConfig(val content: String? = null, val line: Int? = null)

从脚本内容生成多行文字的配置。 Configuration for multiline text produced from a script expression.

Link copied to clipboard
data class PositionOffset(val x: Int = 0, val y: Int = 0)

多行文字的行间像素偏移,不是元素的外层坐标。 Per-line pixel spacing for multiline text, not the element's outer position.

Link copied to clipboard
data class ProgressImageEntity(val empty: String? = null, val full: String? = null)

使用空图和满图绘制进度的图片 ID。 Image IDs for the empty and full states of a progress display.

Link copied to clipboard
data class ProgressVariableEntity(val units: Int = 1, val total: String? = null, val current: String? = null)

进度的总量、当前值及可选分段数量。 Total value, current value, and optional segment count for progress.